<?php
	require_once 'DmcAccess.php';
	header ("Cache-Control: no-cache, must-revalidate");
	header("Expires: Mon, 29 Jul 2000 07:00:00 GMT");
	header ("Content-Type: application/smil");
	header('Content-Disposition: attachment; filename="smil.smil"');
	
	
	if(isset($_GET['l']))
	{
		$videoId = $_GET['l'];
		$hdUrl = getUrl($videoId,$hdFile);
		$lowUrl = getUrl($videoId,$lowFile);
	}
?>
<?php
	if(isset($videoId))
	{
?>
<smil  xmlns="http://www.w3.org/2001/SMIL20/Language">
    <body>
		<switch>
			<video src="<?php echo $hdUrl ?>" system-bitrate="128000"/> 
			<video src="<?php echo $lowUrl ?>" system-bitrate="56000"/> 
		</switch>
    </body>
</smil>
<?php
	}
?>